﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using RenAi.Medical.DAL;
using RenAi.Medical.Model;

namespace RenAi.Medical.BLL
{
    public class AnswerBLL
    {
        AnswerDAL dal = new AnswerDAL();
        /// <summary>
        /// 显示回答列表
        /// </summary>
        /// <returns></returns>
        public DataTable GetALLAnswer()
        {
            return dal.GetALLAnswer();
        }
        /// <summary>
        /// 添加回复信息
        /// </summary>
        /// <param name="a"></param>
        /// <returns></returns>
        public int AddAnswer(Answer a)
        {
            return dal.AddAnswer(a);
        }
        /// <summary>
        /// 删除回复信息
        /// </summary>
        /// <param name="Aid"></param>
        /// <returns></returns>
        public int DelAnswer(string Aid)
        {
            return dal.DelAnswer(Aid);
        }
        /// <summary>
        /// 根据编号查询回复信息
        /// </summary>
        /// <param name="Aid"></param>
        /// <returns></returns>
        public DataTable GetAnswer(string Aid)
        {
            return dal.GetAnswer(Aid);
        }
        /// <summary>
        /// 修改回复信息
        /// </summary>
        /// <param name="a"></param>
        /// <returns></returns>
        public int UpdAnswer(Answer a)
        {
            return dal.UpdAnswer(a);
        }
        /// <summary>
        /// 显示医生信息
        /// </summary>
        /// <returns></returns>
        public DataTable ShowDoctor()
        {
            return dal.ShowDoctor();
        }
    }
}
